package cm.NewsDao;



import cm.entity.Detail;
import cm.entity.News1;
import cm.entity.News31;

import java.util.List;

public interface NewsDao1 {
    /*//查看信息
    public void getNewsByTitle();
    //增加信息
    public void addNews(int id, int categoryid, String title, String summary, String content, String author, Date createdate);

    //删除信息
    public void deleteNews(int id);
    //改变信息
    public void updateNews(int id,String title) throws SQLException;
*/



    // 查询新闻信息
    public List<News1> getNewsList();

    // 增加新闻信息
    public boolean add(News1 news1) ;

    // 删除新闻信息
    public boolean delete(int id) ;

    // 修改新闻
    public boolean update(News1 news1) ;


    public News1 selectById(int id);


    public int UpdateNews31(News31 news31);



    public List<News1> selectPage(int index, int crencount);



    public List<News1> selectPage1(Detail detail);

}
